package cn.ecut.contoller;

import cn.ecut.model.TShenqingdan;
import cn.ecut.service.TShenqingdanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("tShenqingdan")
public class TShenqingdanController {
    /**
     * 服务对象
     */
    @Autowired
    private TShenqingdanService tShenqingdanService;

    /**
     * 通过主键查询单条数据
     *
     * @param id 主键
     * @return 单条数据
     */
    @GetMapping("selectOne")
    public TShenqingdan selectOne(Integer id) {
        return this.tShenqingdanService.queryById(id);
    }

}